<?php

namespace App\Library\Requests\Plug;

use App\Library\Requests\Product\ProductAddRequest;

class PlugEditRequest extends ProductAddRequest
{
    public function rules(): array
    {
        $array = parent::rules();
        unset($array['categoryId_1']);
        return array_merge($array, [
            $this->No => 'required|string|size:20|regex:' . __('com.numReg'),
        ]);
    }
}
